package edu.zut.cs.software.sms.warehouse.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import edu.zut.cs.software.module.warehouse.domain.Warehouse;
import edu.zut.cs.software.module.warehouse.service.WarehouseManager;
import edu.zut.cs.software.teach.Base.web.spring.controller.GenericController;
@Controller
@RequestMapping("/warehouse")
//http://localhost:8080/sms-web/warehouse/.jsonp?page=1&limit=100
public class WarehouseController extends GenericController<Warehouse,Long,WarehouseManager>{

	WarehouseManager warehousemanager;
	
	
	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		
		return "/warehouse/index";
}
	@Autowired
	public void setWarehouseManager(WarehouseManager warehousemanager) {
		 this.warehousemanager =warehousemanager;
		 this.manager=this.warehousemanager;
		 
	
	}
}
	
